package com.satan.vote.service;

import com.mybatisflex.core.service.IService;
import com.satan.vote.dto.VoteDTO;
import com.satan.vote.entity.Vote;
import com.satan.vote.vo.ResultVO;
import org.springframework.web.multipart.MultipartFile;

public interface VoteService extends IService<Vote> {
    ResultVO uploadCoverImage(MultipartFile coverImage);

    ResultVO add(VoteDTO vote, String token);

    ResultVO listOfUser(String token);

    ResultVO findById(Integer id);

    ResultVO listOfJoinUser(String token);

    ResultVO delete(Integer id);
}
